home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000278_news@newsmaster….columbia.edu _Tue Sep 2 12:23:53 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA19832
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 2 Sep 1997 12:23:52 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA10430
  7.     for kermit.misc@watsun; Tue, 2 Sep 1997 12:23:51 -0400 (EDT)
  8. Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.apfel.de!univ-lyon1.fr!pasteur.fr!oleane!calvacom!not-for-mail
  9. From: do11@calva.net (Dominique Ottello)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Two problems with arrays in MS-DOS Kermit 3.15
  12. Date: Tue, 02 Sep 1997 16:18:29 GMT
  13. Organization: PCatHome&Me
  14. Lines: 35
  15. Message-ID: <340c3bc1.101634@news.calvacom.fr>
  16. References: <34085a7f.81052@news.calvacom.fr> <cJQy1iveLABq@cc.usu.edu>
  17. Reply-To: do11@calva.net
  18. NNTP-Posting-Host: parb08.calvacom.fr
  19. Mime-Version: 1.0
  20. Content-Type: text/plain; charset=us-ascii
  21. Content-Transfer-Encoding: 7bit
  22. X-Newsreader: Forte Agent 1.5/32.451
  23. Xref: news.columbia.edu comp.protocols.kermit.misc:7597
  24.  
  25. the 30 Aug 97 15:37:54 MDT, 
  26. jrd@cc.usu.edu (Joe Doupnik) wrote :
  27.  
  28. > In article <34085a7f.81052@news.calvacom.fr>, do11@calva.net (Dominique Ottello) writes:
  29. > > First : declare \&e[0] does not empty the last element.
  30. >     It does, but the last element is index value (array size - 1).
  31. > That is, like C, elements start with subscript/index 0.
  32. >  
  33. > > declare \&d[5]
  34. >     Declares an array of five elements, \&d[0]..\&d[4].
  35. > > for \%i 1 5 1 {def \&d[\%i] No} 
  36. >     Does nothing with last element (out of bounds)
  37.  
  38. Sorry, but it seems to be contrary to what I can read in the Changes.txt
  39. file found in MSK315.zip. (I always apply RTFM before sending queries)
  40.  
  41. 5. Substitution variables now support the notion of arrays of strings:
  42.  
  43.    DECLARE \&<char>[size]
  44.      Allocates space for "size" number of strings. If size is 0 then the
  45.      structure becomes undefined.
  46.  
  47.    \&<char>[index]
  48.      Is member index of the array <char>.  Use DEFINE or ASSIGN to create
  49.      the array member.  Index starts at 1 and should not exceed the
  50.      declared "size."  Strings are limited in length to 1KB which is the
  51.      limit of a Kermit command. Not all members need be created, only the
  52.      ones you wish. An empty definition removes that member.
  53.  
  54. Best regards.
  55.  
  56. == Dominique Ottello == do11@calva.net == Paris == France ==